<% @title = 'My Identities' %>
<div class="left">
<h2>我的网络ID</h2>
<p><%= link_to '添加一个新ID', {:action => 'new'} %></p>
<table>
  <tr>
    <th></th>
    <th>我在……</th>
    <th>叫做</th>
    <th>是否公开</th>
  </tr>
  
<% for identity in @identities %>
  <tr>
    <td><img src='<%= identity.specific_image %>' /></td>
    <td><%= identity.site.name %></td>
    <td><%= identity.name %></td>
    <td><%= identity.public? %></td>
        
    <td><%= link_to '修改', :action => 'edit', :id => identity %></td>
    <td><%= link_to '删除', { :action => 'destroy', :id => identity }, :confirm => '确定删除么?', :post => true %></td>
  </tr>
<% end %>
</table>

</div>

<div class="right">
	<div class="right_area">
		<ul>
			<li><%= link_to "个人信息", {:controller => "profiles", :action => "update"}, {:id => "update_profile"}%></li>
			<li><%= link_to "我的网络ID", {:controller => "identities"}%></li>
		</ul>		
	</div>
</div>
